// let url = http://127.0.0.1:5500/test.html?name=a#data ;
// console.log(location.search);
// console.log(location.hash); 
// console.log(location.hostname); 
// console.log(location.href); 
// console.log(location.pathname); 
// console.log(location.port); 
// console.log(location.protocol); 
// location.assign('index.html');
// location.replace('index.html');
// location.reload();